package com.rainng.coursesystem.dao;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rainng.coursesystem.controller.admin.vo.SysUserQueryReqDTO;
import com.rainng.coursesystem.controller.admin.vo.SysUserResDTO;
import com.rainng.coursesystem.dao.mapper.RoleMapper;
import com.rainng.coursesystem.dao.mapper.UserRoleMapper;
import com.rainng.coursesystem.model.entity.RoleEntity;
import com.rainng.coursesystem.model.entity.UserRoleEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
@Slf4j
public class UserRoleDAO extends BaseDAO {
    private final UserRoleMapper mapper;

    public UserRoleDAO(UserRoleMapper mapper) {
        this.mapper = mapper;
    }



    public List<UserRoleEntity> getAllUsers() {
        return mapper.getAllUserRoles();
    }



}
